﻿using JESAI.DDD.Entities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JESAI.Platform.Domain.Sys.Entities
{
    /// <summary>
    /// 部门实体类
    /// </summary>
    [SugarTable("tb_department")]
    public class DepartmentEntity : IEntity<string>
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = false)]
        public string Id { get; set; }

        /// <summary>
        /// 父级部门ID
        /// </summary>
        public string ParentId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int SortNum { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public string Director { get; set; }

        /// <summary>
        /// 负责人电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 负责人邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 负责人ID
        /// </summary>
        public string DirectorId { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsValid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public long Cid { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public long Uid { get; set; }
    }
}
